package cloud.maque.admin.service;

import cloud.maque.admin.domain.entity.MqPrivilegeGroup;
import cloud.maque.admin.domain.vo.MqPrivilegeGroupVo;
import cloud.maque.framework.common.request.PaginateDataResquest;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 4color
 * @description 权限组服务层
 * @date 2023-03-17
 */
@Service
public interface MqPrivilegeGroupService extends IService<MqPrivilegeGroup> {


    /**
     * 插入一条记录
     *
     * @param privilegeGroup 记录对象
     * @return 是否成功
     */
    MqPrivilegeGroup saveGroup(MqPrivilegeGroup privilegeGroup);

    Boolean delete(String groupId,String tenantId);

    /**
     * 分页查询
     *
     * @param pageReq
     * @return
     */
    List<MqPrivilegeGroupVo> Tree(PaginateDataResquest<MqPrivilegeGroup> pageReq);

    List<MqPrivilegeGroup> List(MqPrivilegeGroup pageReq);

}
